//
//  Data.m
//  22-QQ_MV_HomeWork
//
//  Created by 曹曹 on 16/8/15.
//  Copyright © 2016年 曹曹. All rights reserved.
//

#import "Data.h"
#import "Contents.h"
#import "Mv_show_play.h"
@implementation Data
- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"contents"]) {
        _contents = [Contents modelWithDictionary:value];
        
    } else if ([key isEqualToString:@"mv_show_play"]) {
        NSMutableArray<MV_show_play *> *array = [NSMutableArray array];
        NSArray *valueArray = value;
        for (NSDictionary *dic in valueArray) {
            MV_show_play *mv = [MV_show_play modelWithDictionary:dic];
            [array addObject:mv];
        }
        _mv_show_play = array;
    }
}

@end
